import {
  httpPost,
  httpGet
} from './request/index.js'

// 用户登录 
export function loginRequest(data) {        // code
  return httpPost('/user/tiktokLogin', data)
}

// 首页商品列表
export function getListRequest(data) {
  return httpGet('/goods/findList', data);
}

// 更新用户信息     //  nickName  path
export function updateTikrokMemberRequest(data) {
  return httpPost('/user/updateTikrokMember', data);
}

// 商品详情 参数id
export function goodsDetailRequest(data){
  return httpGet('/goods/getGoodsInfoById', data);
}

// 商品下单 id:商品 num:数量 packageId:套餐 parentIds:挂载者id
export function tokiktOrderRequest(data){
  return httpPost('/goods/tokiktOrder', data);
}

// 个人中心 订单 参数state
export function getOrderList(data){
  return httpGet('/user/getOrderList', data);
}

// 支付回调 参数orderId
export function getOrderStatusRequest(data){
  return httpPost('/goods/getOrderStatus', data);
}

// 退款请求 参数orderId
export function payReFundRequest(data){
  return httpPost('/goods/payReFund', data);
}

// 订单详情 参数id
export function getOrderDetailRequest(data){
  return httpGet('/user/getOrderDetail', data);
}

// 我的收益列表 
export function findRevenueListRequest(data){
  return httpGet('/user/findRevenueList', data);
}

// 获取用户信息 
export function getMemberInfoRequest(data){
  return httpGet('/user/detail', data);
}

// 获取用户提现列表 
export function getMemberWithdrawRequest(data){
  return httpGet('/user/getMemberWithdraw', data);
}

// 提现请求 参数payId 输入的账号  realName 真实姓名 amount 金额
export function withdrawRequest(data){
  return httpPost('/user/aliPayWithdraw', data);
}



